package com.itheima.consumer.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @作者 itcast
 * @创建日期 2020/11/10 14:26
 **/
@Data
@Component
@ConfigurationProperties(prefix = "test.redis")
public class MyRedisProperties {
    private Integer port;
    private String host;
}
